package pref.junx.flybird.activity.register;


import pref.junx.flybird.api.HttpMethosds;
import pref.junx.flybird.entity.Register;
import pref.junx.flybird.entity.ResultBean;
import pref.junx.flybird.tools.RxSchedulers;
import rx.Observable;

/**
 * Created by 半生瓜 on 2017/8/7.
 */

public class RegisterModel implements RegisterConteact.Model  {
    @Override
    public Observable<ResultBean<Boolean>> getregisterModel(Register register) {
        return HttpMethosds.getInstance().retrofitServicel
                .regsiterE(register)
                .compose(RxSchedulers.io_main());
    }
}
